<?php

namespace app\index\controller\ad;

use app\index\service\AdInfoService;
use ShidianUtil\Thinkphp\Response\ApiResponse;

/**
 * 广告页下部
 * Class AdInfo
 * @package app\index\controller\ad
 */
class AdInfo
{
    private AdInfoService $adInfoService;

    public function __construct(AdInfoService $adInfoService)
    {

        $this->adInfoService = $adInfoService;
    }

    /**
     * 人数
     * @return ApiResponse
     */
    public function read(): ApiResponse
    {

        return ApiResponse::success($this->adInfoService->read());
    }

}
